<?
$section = $args->section;
$section_data = $args->section_data;

if($position_table = $config->tables[$section['position_table']]['table'])
{
    $table = new Table($position_table);
    $items = $table->select('select * from `'.$position_table.'` where section_id=:section_id order by sort',
        array(
            'section_id'=>$section['id']
        )
    );
}
?>
<section id="<?=$args->section['alias']?>">
    <div class="main-block center">
        <h2><?=$section_data['name']?></h2>
        <?foreach($items as $item){?>
        <div class="rev-block">
            <img src="<?=get_cache_pic($item['img'],146,146)?>">
            <div class="rev-text">
                <?=$item['review']?>
                <div class="arrow"></div>
                <span class="client-name"><?=$item['name']?></span>
            </div>
        </div>
        <?}?>
    </div>
</section>
